import {
  request
} from './request'

//获取收藏信息
export function getUserCollect() {
  return request({
    url: '/user/subcount?cookie=' + sessionStorage.getItem("cookie"),
    params: {}
  })
}

//获取已收藏专辑列表
export function getAblumCollect(limit, offset) {
  return request({
    url: '/album/sublist?cookie=' + sessionStorage.getItem("cookie"),
    params: {
      limit,
      offset
    }
  })
}
//收藏的歌手列表
export function getSingerCollect() {
  return request({
    url: '/artist/sublist?cookie=' + sessionStorage.getItem("cookie"),
    params: {

    }
  })
}
//收藏的mv列表
export function getVideoCollect() {
    return request({
      url: '/mv/sublist?cookie=' + sessionStorage.getItem("cookie"),
      params: {
      }
    })
  }

  //获取动态
  export function getEvent(pagesize,lasttime) {
    return request({
      url: '/event?cookie=' + sessionStorage.getItem("cookie"),
      params: {
        pagesize,
        lasttime
      }
    })
  }

  //获取用户动态
  export function getUserEvent(uid,limit,lasttime) {
    return request({
      url: '/user/event?cookie=' + sessionStorage.getItem("cookie"),
      params: {
        uid,
        limit,
        lasttime
      }
    })
  }